package interfaceSample;
import java.util.Random;

public class AnimalWorker {

	public static void scareAnimal(Animal animal){
		System.out.println("Now scaring.." + animal.getName());
		System.out.println(".....");
		animal.makeNoise();
	}
	
	public static void tryToSeat(Animal animal){
		String[] choice = {" is Sitting"," don't want to sit."};
		Random generator = new Random();
		
		String yesOrno = choice[generator.nextInt(choice.length)];

		System.out.println("XXXXXXXXXXXXXXX");
		System.out.println(animal.getName()+yesOrno);
		System.out.println("XXXXXXXXXXXXXXX");
		
	}
	
}